
<%@ page import="weeklyreport.Task"%>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<title>
	${taskInstance?.issueNumber }
</title>
</head>
<body>
	<a href="#show-task" class="skip" tabindex="-1"><g:message
			code="default.link.skip.label" default="Skip to content&hellip;" /></a>
	<div class="nav" role="navigation">
		<ul>
			<li><g:link class="list" controller="issue">问题清单</g:link></li>
			<li><g:link class="list" action="index">任务清单</g:link></li>
			<li><g:link class="create" action="create">新增任务</g:link></li>
		</ul>
	</div>
	<div id="show-task" class="content scaffold-show" role="main">
		<h1>
			${taskInstance?.issueNumber }
		</h1>
		<g:if test="${flash.message}">
			<div class="message" role="status">
				${flash.message}
			</div>
		</g:if>
		<ol class="property-list task">

			<g:if test="${taskInstance?.issueNumber}">
				<li class="fieldcontain"><span id="issueNumber-label"
					class="property-label">问题编号</span> <span class="property-value"
					aria-labelledby="issueNumber-label"><g:fieldValue
							bean="${taskInstance}" field="issueNumber" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.groupName}">
				<li class="fieldcontain"><span id="groupName-label"
					class="property-label">组别</span> <span class="property-value"
					aria-labelledby="groupName-label"><g:fieldValue
							bean="${taskInstance}" field="groupName" /></span></li>
			</g:if>
			
			<g:if test="${taskInstance?.itsmNumber}">
				<li class="fieldcontain"><span id="itsmNumber-label"
					class="property-label">ITSM单号</span> <span class="property-value"
					aria-labelledby="itsmNumber-label"><g:fieldValue
							bean="${taskInstance}" field="itsmNumber" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.status}">
				<li class="fieldcontain"><span id="status-label"
					class="property-label">开发状态</span> <span class="property-value"
					aria-labelledby="status-label"><g:fieldValue
							bean="${taskInstance}" field="status" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.planningBegin}">
				<li class="fieldcontain"><span id="planningBegin-label"
					class="property-label">计划开始时间</span> <span class="property-value"
					aria-labelledby="planningBegin-label"><g:formatDate
							format="yyyy/MM/dd" date="${taskInstance.planningBegin}" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.beginDate}">
				<li class="fieldcontain"><span id="beginDate-label"
					class="property-label">实际开始时间</span> <span class="property-value"
					aria-labelledby="beginDate-label"><g:formatDate
							format="yyyy/MM/dd" date="${taskInstance.beginDate}" /></span></li>

				<g:if test="${taskInstance?.planningEnd}">
					<li class="fieldcontain"><span id="planningEnd-label"
						class="property-label">计划完成时间</span> <span class="property-value"
						aria-labelledby="planningEnd-label"><g:formatDate
							format="yyyy/MM/dd" date="${taskInstance.planningEnd}" /></span></li>
				</g:if>
			</g:if>

			<g:if test="${taskInstance?.endDate}">
				<li class="fieldcontain"><span id="endDate-label"
					class="property-label">实际完成时间</span> <span class="property-value"
					aria-labelledby="endDate-label"><g:formatDate
							format="yyyy/MM/dd" date="${taskInstance.endDate}" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.internalVersion}">
				<li class="fieldcontain"><span id="internalVersion-label"
					class="property-label">预期内部版本号</span> <span class="property-value"
					aria-labelledby="internalVersion-label"><g:fieldValue
							bean="${taskInstance}" field="internalVersion" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.description}">
				<li class="fieldcontain"><span id="description-label"
					class="property-label">问题描述</span> <span class="property-value"
					aria-labelledby="description-label"><g:fieldValue
							bean="${taskInstance}" field="description" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.manDay}">
				<li class="fieldcontain"><span id="manDay-label"
					class="property-label">开发人天</span> <span class="property-value"
					aria-labelledby="manDay-label"><g:fieldValue
							bean="${taskInstance}" field="manDay" /></span></li>
			</g:if>

			<g:if test="${taskInstance?.planningManDay}">
				<li class="fieldcontain"><span id="planningManDay-label"
					class="property-label">计划人天</span> <span class="property-value"
					aria-labelledby="planningManDay-label"><g:fieldValue
							bean="${taskInstance}" field="planningManDay" /></span></li>
			</g:if>

		</ol>
		<g:form url="[resource:taskInstance, action:'delete']" method="DELETE">
			<fieldset class="buttons">
				<g:link class="edit" action="edit" resource="${taskInstance}">修改</g:link>
				<g:actionSubmit class="delete" action="delete" value="删除"
					onclick="return confirm('确定？');" />
			</fieldset>
		</g:form>
	</div>
</body>
</html>
